package com.mbf.crm.model.dao;

import java.util.List;

import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import com.mbf.crm.common.AttachmentType;
import com.mbf.crm.model.domain.Attachment;
import com.mbf.crm.model.domain.Member;

@Repository
public interface AttachmentDao extends PagingAndSortingRepository<Attachment, Long>{

	
	Attachment findByFilePath(String filePath);
	
	List<Attachment> findByFilePathIsNotAndMemberAndType(String filePath,Member member,AttachmentType type);
	
}
